home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / p_man / cat3 / libblas / syr2.z / syr2
Text File  |  1998-10-30  |  15KB  |  265 lines

  1.  
  2.  
  3.  
  4. ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))                                                ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      dsyr2, ssyr2, zher2, cher2 - BLAS Level Two
  10.      (Symmetric/Hermitian)Matrix Rank 2 Update
  11.  
  12.  
  13. FFFFOOOORRRRTTTTRRRRAAAANNNN 77777777 SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  14.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ddddssssyyyyrrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa ))))
  15.            cccchhhhaaaarrrraaaacccctttteeeerrrr****1111        uuuupppplllloooo
  16.            iiiinnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa
  17.            ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn   aaaallllpppphhhhaaaa
  18.            ddddoooouuuubbbblllleeee pppprrrreeeecccciiiissssiiiioooonnnn   aaaa(((( llllddddaaaa,,,,****)))),,,, xxxx((((****)))),,,, yyyy((((****))))
  19.  
  20.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee ssssssssyyyyrrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa))))
  21.            cccchhhhaaaarrrraaaacccctttteeeerrrr****1111        uuuupppplllloooo
  22.            iiiinnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa
  23.            rrrreeeeaaaallll               aaaallllpppphhhhaaaa
  24.            rrrreeeeaaaallll               aaaa(((( llllddddaaaa,,,,****)))),,,, xxxx((((****)))),,,, yyyy((((****))))
  25.  
  26.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee zzzzhhhheeeerrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa))))
  27.            cccchhhhaaaarrrraaaacccctttteeeerrrr****1111        uuuupppplllloooo
  28.            iiiinnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa
  29.            ccccoooommmmpppplllleeeexxxx****11116666         aaaallllpppphhhhaaaa
  30.            ccccoooommmmpppplllleeeexxxx****11116666         aaaa(((( llllddddaaaa,,,,****)))),,,, xxxx((((****)))),,,, yyyy((((****))))
  31.  
  32.      ssssuuuubbbbrrrroooouuuuttttiiiinnnneeee cccchhhheeeerrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa))))
  33.            cccchhhhaaaarrrraaaacccctttteeeerrrr****1111        uuuupppplllloooo
  34.            iiiinnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa
  35.            ccccoooommmmpppplllleeeexxxx            aaaallllpppphhhhaaaa
  36.            ccccoooommmmpppplllleeeexxxx            aaaa(((( llllddddaaaa,,,,****)))),,,, xxxx((((****)))),,,, yyyy((((****))))
  37.  
  38.  
  39.  
  40. CCCC SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  41.      vvvvooooiiiidddd ddddssssyyyyrrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa ))))
  42.            MMMMaaaattttrrrriiiixxxxTTTTrrrriiiiaaaannnngggglllleeee     uuuupppplllloooo;;;;
  43.            IIIInnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa;;;;
  44.            ddddoooouuuubbbblllleeee             aaaallllpppphhhhaaaa
  45.            ddddoooouuuubbbblllleeee             ((((****aaaa))))[[[[llllddddaaaa****nnnn]]]],,,, ((((****xxxx))))[[[[ nnnn ]]]],,,, ((((****yyyy))))[[[[ nnnn ]]]];;;;
  46.  
  47.      vvvvooooiiiidddd ssssssssyyyyrrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa ))))
  48.            MMMMaaaattttrrrriiiixxxxTTTTrrrriiiiaaaannnngggglllleeee     uuuupppplllloooo;;;;
  49.            IIIInnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa;;;;
  50.            ffffllllooooaaaatttt              aaaallllpppphhhhaaaa
  51.            ffffllllooooaaaatttt              ((((****aaaa))))[[[[llllddddaaaa****nnnn]]]],,,, ((((****xxxx))))[[[[ nnnn ]]]],,,, ((((****yyyy))))[[[[ nnnn ]]]];;;;
  52.  
  53.      vvvvooooiiiidddd zzzzhhhheeeerrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa ))))
  54.            MMMMaaaattttrrrriiiixxxxTTTTrrrriiiiaaaannnngggglllleeee     uuuupppplllloooo;;;;
  55.            IIIInnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa;;;;
  56.            ZZZZoooommmmpppplllleeeexxxx            aaaallllpppphhhhaaaa
  57.            ZZZZoooommmmpppplllleeeexxxx            ((((****aaaa))))[[[[llllddddaaaa****nnnn]]]],,,, ((((****xxxx))))[[[[ nnnn ]]]],,,, ((((****yyyy))))[[[[ nnnn ]]]];;;;
  58.  
  59.      vvvvooooiiiidddd cccchhhheeeerrrr2222(((( uuuupppplllloooo,,,, nnnn,,,, aaaallllpppphhhhaaaa,,,, xxxx,,,, iiiinnnnccccxxxx,,,, yyyy,,,, iiiinnnnccccyyyy,,,, aaaa,,,, llllddddaaaa ))))
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))                                                ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))
  71.  
  72.  
  73.  
  74.            MMMMaaaattttrrrriiiixxxxTTTTrrrriiiiaaaannnngggglllleeee     uuuupppplllloooo;;;;
  75.            IIIInnnntttteeeeggggeeeerrrr            nnnn,,,, iiiinnnnccccxxxx,,,, iiiinnnnccccyyyy,,,, llllddddaaaa;;;;
  76.            CCCCoooommmmpppplllleeeexxxx            aaaallllpppphhhhaaaa
  77.            CCCCoooommmmpppplllleeeexxxx            ((((****aaaa))))[[[[llllddddaaaa****nnnn]]]],,,, ((((****xxxx))))[[[[ nnnn ]]]],,,, ((((****yyyy))))[[[[ nnnn ]]]];;;;
  78.  
  79.  
  80.  
  81. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  82.      ddddssssyyyyrrrr2222 and ssssssssyyyyrrrr2222 perform the symmetric rank 2 operation
  83.  
  84.            A := alpha*x*y' + alpha*y*x' + A,
  85.  
  86.      zzzzhhhheeeerrrr2222 and cccchhhheeeerrrr2222 perform the hermitian rank 2 operation
  87.  
  88.            A := alpha*x*conjg( y' ) + conjg( alpha )*y*conjg( x' ) + A,
  89.  
  90.      where alpha is a scalar, x and y are n element vectors and A is an n by n
  91.      symmetric/hermitian matrix.
  92.  
  93.  
  94. PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
  95.      uuuupppplllloooo    On entry, uuuupppplllloooo specifies whether the upper or lower triangular
  96.              part of the array A is to be referenced a follows:
  97.  
  98.  
  99.  
  100.              FFFFOOOORRRRTTTTRRRRAAAANNNN
  101.              uplo = 'U' or 'u'   Only the upper triangular part of A
  102.                                  is to be referenced.
  103.              uplo = 'L' or 'l'   Only the lower triangular part of A
  104.                                  is to be referenced.
  105.  
  106.              CCCC
  107.              uplo = UpperTriangle     Only the lower triangular part of A
  108.                                       is to be referenced.
  109.              uplo = LowerTriangle     Only the lower triangular part of A
  110.                                       is to be referenced.
  111.  
  112.              Unchanged on exit.
  113.  
  114.      nnnn       On entry, nnnn specifies the the order of the matrix A.  nnnn must be
  115.              at least zero.
  116.              Unchanged on exit.
  117.  
  118.      aaaallllpppphhhhaaaa   specifies the scalar alpha.
  119.              Unchanged on exit.
  120.  
  121.      xxxx       Array of size at least ( 1 + ( n - 1 )*abs( incx ) ). Before
  122.              entry, the incremented array xxxx must contain the n element vector
  123.              x.
  124.              Unchanged on exit.
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))                                                ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))
  137.  
  138.  
  139.  
  140.      iiiinnnnccccxxxx    On entry, iiiinnnnccccxxxx specifies the increment for the elements of xxxx.
  141.              iiiinnnnccccxxxx must not be zero.
  142.              Unchanged on exit.
  143.  
  144.      yyyy       Array of size at least ( 1 + ( n - 1 )*abs( incy ) ). Before
  145.              entry, the incremented array yyyy must contain the n element vector
  146.              y. On exit, Y is overwritten by the updated vector y.
  147.  
  148.      iiiinnnnccccyyyy    On entry, iiiinnnnccccyyyy specifies the increment for the elements of yyyy.
  149.              iiiinnnnccccyyyy must not be zero.
  150.              Unchanged on exit.
  151.  
  152.      aaaa       An array containing the matrix A.
  153.  
  154.              FFFFOOOORRRRTTTTRRRRAAAANNNN
  155.              Array of dimension ( lda, n ).
  156.  
  157.              CCCC
  158.              A pointer to an array of size lda*n.
  159.              See note below about array storage convention for C.
  160.  
  161.              Before entry with uuuupppplllloooo ==== ''''UUUU'''' oooorrrr ''''uuuu'''' oooorrrr , the array elements
  162.              corresponding to the leading n by n upper triangular part of the
  163.              matrix A must contain the uppertriangular part of the
  164.              symmetric/hermitian matrix and the corresponding strictly lower
  165.              triangular part of A is not referenced. On exit, the array
  166.              elements corresponding to the upper triangular part of the matrix
  167.              A is overwritten by the upper triangular part of the updated
  168.              matrix.
  169.  
  170.              Before entry with uuuupppplllloooo ==== ''''LLLL'''' oooorrrr ''''llll'''' oooorrrr , the array elements
  171.              corresponding to the leading n by n lower triangular part of the
  172.              matrix A must contain the lower triangular part of the
  173.              symmetric/hermitian matrix and the corresponding strictly upper
  174.              triangular part of A is not referenced. On exit, the array
  175.              elements corresponding to the lower triangular part of the matrix
  176.              A is overwritten by the lower triangular part of the updated
  177.              matrix.
  178.  
  179.              Note that the imaginary parts of the diagonal elements need not
  180.              be set and are assumed to be zero.
  181.  
  182.      llllddddaaaa     On entry, llllddddaaaa specifies the first dimension of A as declared in
  183.              the calling (sub) program. llllddddaaaa must be at least ( k + 1 ).
  184.              Unchanged on exit.
  185.  
  186.  
  187. CCCC AAAARRRRRRRRAAAAYYYY SSSSTTTTOOOORRRRAAAAGGGGEEEE CCCCOOOONNNNVVVVEEEENNNNTTTTIIIIOOOONNNN
  188.        The matrices  are assumed  to be stored in a  oooonnnneeee ddddiiiimmmmeeeennnnssssiiiioooonnnnaaaallll CCCC aaaarrrrrrrraaaayyyy
  189.        in an analogous fashion as a Fortran array (column major). Therefore,
  190.        the element  A(i+1,j)  of matrix A  is stored  immediately  after the
  191.        element  A(i,j), while  A(i,j+1) is lda  elements apart from  A(i,j).
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))                                                ____SSSSYYYYRRRR2222,,,,____HHHHEEEERRRR2222((((3333FFFF))))
  203.  
  204.  
  205.  
  206.        The element A(i,j) of the matrix can be accessed directly by reference
  207.        to  a[ (j-1)*lda + (i-1) ].
  208.  
  209.  
  210. AAAAUUUUTTTTHHHHOOOORRRRSSSS
  211.           Jack Dongarra, Argonne National Laboratory.
  212.           Iain Duff, AERE Harwell.
  213.           Jeremy Du Croz, Numerical Algorithms Group Ltd.
  214.           Sven Hammarling, Numerical Algorithms Group Ltd.
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.